﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;

namespace H2.NET.Web.Pages.SMD.Model
{
    [Table]
    [Serializable]
    public class t_smd_ContractDevice : DataObject
    {
        [ID]
        [IDENTITY]
        [Column]
        public int ContractDeviceID { get { return fContractDeviceID; } set { fContractDeviceID = value; EntityState.FieldChange("ContractDeviceID"); } } private int fContractDeviceID; public static FieldInfo _ContractDeviceID = new FieldInfo("t_smd_ContractDevice", "ContractDeviceID");
        [Column]
        public int DeviceID { get { return fDeviceID; } set { fDeviceID = value; EntityState.FieldChange("DeviceID"); } } private int fDeviceID; public static FieldInfo _DeviceID = new FieldInfo("t_smd_ContractDevice", "DeviceID");
        [Column]
        public int StoreID { get { return fStoreID; } set { fStoreID = value; EntityState.FieldChange("StoreID"); } } private int fStoreID; public static FieldInfo _StoreID = new FieldInfo("t_smd_ContractDevice", "StoreID");
        //[Column]
        //public int? ContractID { get { return fCONTRACTID; } set { fCONTRACTID = value; EntityState.FieldChange("ContractID"); } } private int? fCONTRACTID; public static FieldInfo _ContractID = new FieldInfo("t_smd_ContractDevice", "ContractID");
        [Column]
        public string DeviceNature { get { return fDEVICENATURE; } set { fDEVICENATURE = value; EntityState.FieldChange("DeviceNature"); } } private string fDEVICENATURE; public static FieldInfo _DeviceNature = new FieldInfo("t_smd_ContractDevice", "DeviceNature");
        [Column]
        public string DeviceAffiliation { get { return fDEVICEAFFILIATION; } set { fDEVICEAFFILIATION = value; EntityState.FieldChange("DeviceAffiliation"); } } private string fDEVICEAFFILIATION; public static FieldInfo _DeviceAffiliation = new FieldInfo("t_smd_ContractDevice", "DeviceAffiliation");
        [Column]
        public string DeviceStamp { get { return fDEVICESTAMP; } set { fDEVICESTAMP = value; EntityState.FieldChange("DeviceStamp"); } } private string fDEVICESTAMP; public static FieldInfo _DeviceStamp = new FieldInfo("t_smd_ContractDevice", "DeviceStamp");
        [Column]
        public string DeviceParty { get { return fDEVICEPARTY; } set { fDEVICEPARTY = value; EntityState.FieldChange("DeviceParty"); } } private string fDEVICEPARTY; public static FieldInfo _DeviceParty = new FieldInfo("t_smd_ContractDevice", "DeviceParty");
        [Column]
        public int? DeviceCopies { get { return fDEVICECOPIES; } set { fDEVICECOPIES = value; EntityState.FieldChange("DeviceCopies"); } } private int? fDEVICECOPIES; public static FieldInfo _DeviceCopies = new FieldInfo("t_smd_ContractDevice", "DeviceCopies");
        [Column]
        public DateTime? DeviceExpressDate { get { return fDEVICEEXPRESSDATE; } set { fDEVICEEXPRESSDATE = value; EntityState.FieldChange("DeviceExpressDate"); } } private DateTime? fDEVICEEXPRESSDATE; public static FieldInfo _DeviceExpressDate = new FieldInfo("t_smd_ContractDevice", "DeviceExpressDate");
        [Column]
        public string DeviceEms { get { return fDEVICEEMS; } set { fDEVICEEMS = value; EntityState.FieldChange("DeviceEms"); } } private string fDEVICEEMS; public static FieldInfo _DeviceEms = new FieldInfo("t_smd_ContractDevice", "DeviceEms");
        [Column]
        public string ToDeviceEms { get { return fTODEVICEEMS; } set { fTODEVICEEMS = value; EntityState.FieldChange("ToDeviceEms"); } } private string fTODEVICEEMS; public static FieldInfo _ToDeviceEms = new FieldInfo("t_smd_ContractDevice", "ToDeviceEms");
        [Column]
        public bool? DeviceFinance { get { return fDEVICEFINANCE; } set { fDEVICEFINANCE = value; EntityState.FieldChange("DeviceFinance"); } } private bool? fDEVICEFINANCE; public static FieldInfo _DeviceFinance = new FieldInfo("t_smd_ContractDevice", "DeviceFinance");
        [Column]
        public string DeviceArchive { get { return fDEVICEARCHIVE; } set { fDEVICEARCHIVE = value; EntityState.FieldChange("DeviceArchive"); } } private string fDEVICEARCHIVE; public static FieldInfo _DeviceArchive = new FieldInfo("t_smd_ContractDevice", "DeviceArchive");
        [Column]
        public string DeviceRemark { get { return fDEVICEREMARK; } set { fDEVICEREMARK = value; EntityState.FieldChange("DeviceRemark"); } } private string fDEVICEREMARK; public static FieldInfo _DeviceRemark = new FieldInfo("t_smd_ContractDevice", "DeviceRemark");
        [Column]
        public string DeviceFixAssetNo { get { return fDEVICEFIXASSETNO; } set { fDEVICEFIXASSETNO = value; EntityState.FieldChange("DeviceFixAssetNo"); } } private string fDEVICEFIXASSETNO; public static FieldInfo _DeviceFixAssetNo = new FieldInfo("t_smd_ContractDevice", "DeviceFixAssetNo");
        [Column]
        public decimal? DeviceDeposit { get { return fDEVICEDEPOSIT; } set { fDEVICEDEPOSIT = value; EntityState.FieldChange("DeviceDeposit"); } } private decimal? fDEVICEDEPOSIT; public static FieldInfo _DeviceDeposit = new FieldInfo("t_smd_ContractDevice", "DeviceDeposit");
        [Column]
        public string DeviceContractType { get { return fDeviceContractType; } set { fDeviceContractType = value; EntityState.FieldChange("DeviceContractType"); } } private string fDeviceContractType; public static FieldInfo _DeviceContractType = new FieldInfo("t_smd_ContractDevice", "DeviceContractType");
        [Column]
        public DateTime? DeviceContractBeginDate { get { return fDEVICECONTRACTBEGINDATE; } set { fDEVICECONTRACTBEGINDATE = value; EntityState.FieldChange("DeviceContractBeginDate"); } } private DateTime? fDEVICECONTRACTBEGINDATE; public static FieldInfo _DeviceContractBeginDate = new FieldInfo("t_smd_ContractDevice", "DeviceContractBeginDate");
        [Column]
        public DateTime? DeviceContractEndDate { get { return fDEVICECONTRACTENDDATE; } set { fDEVICECONTRACTENDDATE = value; EntityState.FieldChange("DeviceContractEndDate"); } } private DateTime? fDEVICECONTRACTENDDATE; public static FieldInfo _DeviceContractEndDate = new FieldInfo("t_smd_ContractDevice", "DeviceContractEndDate");
        [Column]
        public string DeliveryNo { get { return fDELIVERYNO; } set { fDELIVERYNO = value; EntityState.FieldChange("DeliveryNo"); } } private string fDELIVERYNO; public static FieldInfo _DeliveryNo = new FieldInfo("t_smd_ContractDevice", "DeliveryNo");
        [Column]
        public DateTime? DeliveryDate { get { return fDELIVERYDATE; } set { fDELIVERYDATE = value; EntityState.FieldChange("DeliveryDate"); } } private DateTime? fDELIVERYDATE; public static FieldInfo _DeliveryDate = new FieldInfo("t_smd_ContractDevice", "DeliveryDate");
        [Column]
        public bool? DeviceRegionReceive { get { return fDeviceRegionReceive; } set { fDeviceRegionReceive = value; EntityState.FieldChange("DeviceRegionReceive"); } } private bool? fDeviceRegionReceive; public static FieldInfo _DeviceRegionReceive = new FieldInfo("t_smd_Contract", "DeviceRegionReceive");
        [Column]
        public string TransferFromStoreSN { get { return fTransferFromStoreSN; } set { fTransferFromStoreSN = value; EntityState.FieldChange("TransferFromStoreSN"); } } private string fTransferFromStoreSN; public static FieldInfo _TransferFromStoreSN = new FieldInfo("t_smd_ContractDevice", "TransferFromStoreSN");
        [Column]
        public string TransferToStoreSN { get { return fTransferToStoreSN; } set { fTransferToStoreSN = value; EntityState.FieldChange("TransferToStoreSN"); } } private string fTransferToStoreSN; public static FieldInfo _TransferToStoreSN = new FieldInfo("t_smd_ContractDevice", "TransferToStoreSN");
        [Column]
        public DateTime? TransferContractDate { get { return fTransferContractDate; } set { fTransferContractDate = value; EntityState.FieldChange("TransferContractDate"); } } private DateTime? fTransferContractDate; public static FieldInfo _TransferContractDate = new FieldInfo("t_smd_ContractDevice", "TransferContractDate");
        [Column]
        public string DeviceFileNO { get { return fDeviceFileNO; } set { fDeviceFileNO = value; EntityState.FieldChange("DeviceFileNO"); } } private string fDeviceFileNO; public static FieldInfo _DeviceFileNO = new FieldInfo("t_smd_Contract", "DeviceFileNO");
        [Column]
        public string PartyACustomer { get { return fPartyACustomer; } set { fPartyACustomer = value; EntityState.FieldChange("PartyACustomer"); } } private string fPartyACustomer; public static FieldInfo _PartyACustomer = new FieldInfo("t_smd_Device", "PartyACustomer");
        [Column]
        public string PartyBCustomer { get { return fPartyBCustomer; } set { fPartyBCustomer = value; EntityState.FieldChange("PartyBCustomer"); } } private string fPartyBCustomer; public static FieldInfo _PartyBCustomer = new FieldInfo("t_smd_Device", "PartyBCustomer");
        [Column]
        public decimal FineAmount { get { return fFineAmount; } set { fFineAmount = value; EntityState.FieldChange("FineAmount"); } } private decimal fFineAmount; public static FieldInfo _FineAmount = new FieldInfo("t_smd_Device", "FineAmount");
        [Column]
        public decimal TransferAmount { get { return fTransferAmount; } set { fTransferAmount = value; EntityState.FieldChange("TransferAmount"); } } private decimal fTransferAmount; public static FieldInfo _TransferAmount = new FieldInfo("t_smd_Device", "TransferAmount");
        [Column]
        public string DeviceContractSN { get { return fDeviceContractSN; } set { fDeviceContractSN = value; EntityState.FieldChange("DeviceContractSN"); } } private string fDeviceContractSN; public static FieldInfo _DeviceContractSN = new FieldInfo("t_smd_Device", "DeviceContractSN");
        [Column]
        public string DeviceNotSignReason { get { return fDeviceNotSignReason; } set { fDeviceNotSignReason = value; EntityState.FieldChange("DeviceNotSignReason"); } } private string fDeviceNotSignReason; public static FieldInfo _DeviceNotSignReason = new FieldInfo("t_smd_Device", "DeviceNotSignReason");

    }
}